package ca.etsmtl.log430.lab2.presentation;

import ca.etsmtl.log430.lab2.management.Manager;
/**
 * Main class is now in the presentation layer and do not do any management logic. It only
 * 	instantiate the manager and the presentation.
 * @author MA Bilodeau
 *
 */
public class Main {
	public static void main(String argv[]) {
		if (argv.length != 2) {
			System.out.println("\n\nIncorrect number of input parameters -"
					+ " correct usage:");
			System.out.println("\njava DriverAssignment <delivery file name>"
					+ " <driver file name>");
		} else {
			
			Manager.instantiate(argv[0],argv[1]);
			
			// Instantiates a menu object
			Menus menu = new Menus();

			// Instantiates a display object
			Displays display = new Displays();

			boolean done=false;
			while(!done){
				done =menu.promptUser();
			}
		}
	}
}
